{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "6b75dc06",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "BMI指数: 24.18704649287826\n"
     ]
    }
   ],
   "source": [
    "# 体重kg\n",
    "weight=81\n",
    "# 身高(cm)\n",
    "height=183\n",
    "\n",
    "BMI=weight/(height*height)*10000\n",
    "print('BMI指数: {}'.format(BMI))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "1bcf0d02",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "BMI指数: 23.201648302427664\n",
      "BMI指数: 22.39541341933172\n"
     ]
    }
   ],
   "source": [
    "print('BMI指数: {}'.format(77.7/(height*height)*10000))\n",
    "print('BMI指数: {}'.format(75/(height*height)*10000))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "3e094354",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "BMR指数: 1887.13\n"
     ]
    }
   ],
   "source": [
    "age=30\n",
    "BMR=67+13.73*weight+5*height-6.9*age\n",
    "print('BMR指数: {}'.format(BMR))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "e77d6f30",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "python",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.7"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
